﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductList1.ascx.cs" Inherits="Control_ProductList1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<style type="text/css">
/*网易风格*/
.anpager .cpb {background:#1F3A87 none repeat scroll 0 0;border:1px solid #CCCCCC;color:#FFFFFF;font-weight:bold;margin:5px 4px 0 0;padding:4px 5px 0;}
.anpager a {background:#FFFFFF none repeat scroll 0 0;border:1px solid #CCCCCC;color:#1F3A87;margin:5px 4px 0 0;padding:4px 5px 0;text-decoration:none}
.anpager a:hover{background:#1F3A87 none repeat scroll 0 0;border:1px solid #1F3A87;color:#FFFFFF;}

/*拍拍网风格*/
.paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}
.paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;margin-right:2px}
.paginator a:visited {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;}
.paginator .cpb {padding: 1px 6px;font-weight: bold; font-size: 13px;border:none}
.paginator a:hover {color: #fff; background: #ffa501;border-color:#ffa501;text-decoration: none;}

/*迅雷风格*/
.pages { color: #999 }
.pages a, .pages .cpb { text-decoration:none;float: left; padding: 0 5px; border: 1px solid #ddd;background: #ffff;margin:0 2px; font-size:11px; color:#000;}
.pages a:hover { background-color: #E61636; color:#fff;border:1px solid #E61636; text-decoration:none;}
.pages .cpb { font-weight: bold; color: #fff; background: #E61636; border:1px solid #E61636;}

.code{font-weight:bold;color:blue}
</style>
<div style="text-align:center;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Label ID="LB_ProductList1" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="Red"></asp:Label>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:DataList ID="DL_ProductList" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" Width="100%" CellPadding="7" CellSpacing="7">
        <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <div align="center">
                           <a href="ProductInfo.aspx?ProductID=<%# Eval("Product_ID") %>"><img alt="" style="border:0px;" src="<%# FormatImage(Eval("Product_SmallThumb")) %>" width="160" height="120"/></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="10">
                    </td>
                </tr>
                <tr>
                    <td>
                        <div align="center">
                            <a href="ProductInfo.aspx?ProductID=<%# Eval("Product_ID") %>"><%# Eval("Product_Title")%></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="10">
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页" CssClass="paginator" CurrentPageButtonClass="cpb"
        NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" 
        PageSize="8" PrevPageText="上一页" ShowPageIndexBox="Never"   LayoutType="Table" PagingButtonLayoutType="Span" >
    </webdiyer:AspNetPager>
    </ContentTemplate>
    </asp:UpdatePanel>
</div>
